<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title></title>
	{{HTML::style('public/backend/css/bootstrap.css')}}
	{{HTML::style('public/backend/css/style.css')}}
</head>
<body>
	@if(!Sentry::check())
	<div class="container">
		<div class="row">
		    <div class="col-sm-5">
		     
		    </div>
		    <div class="col-sm-7">
		    	<div class="login">
			      	<h2>Login</h2>

					@if (Session::has("error"))
						<div class="warningx wredy">{{Session::get("error")}}</div>
					@endif

					{{Form::open()}}

					{{Form::label("username")}} <br>
					{{Form::text("username","",array("class"=>"form-control"))}}<br>

					{{Form::label("password")}}<br>
					{{Form::password("password",array("class"=>"form-control"))}}<br>

					{{Form::submit("Login",array("class"=>"btn btn-primary btn-lg btn-block"))}}
					
					{{Form::close()}}
					</div>
		    </div>
		</div>
	@else
		<div class="warningx wredy">Bạn phải logout thì mới thực hiện được chức năng này, <a href="{{URL::route('index')}}">quay lại trang chủ</a></div>
	@endif
	</div>
</body>
</html>